home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Startup Screen Picker 1.2 / source / ssp startup app ƒ / Shell ƒ / prefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-30  |  1.5 KB  |  54 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        prefs.c
  4.  
  5. Purpose:    This is the header file for prefs.c
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or
  10. (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program in a file named "GNU General Public License".
  19. If not, write to the Free Software Foundation, 675 Mass Ave,
  20. Cambridge, MA 02139, USA.
  21.  
  22. \**********************************************************************/
  23.  
  24. #include "Folders.h"
  25.  
  26. #define        PREFS_FILE_NAME            "\pStartupScreen Picker Prefs"
  27. #define        PREFS_TYPE                'PREF'
  28.  
  29. typedef struct
  30. {
  31.     unsigned char        name[32];
  32. } PrefStruct;
  33.  
  34. short PreferencesInit(void);
  35. short OpenPrefsFile(short *prefsFileID);
  36. void ClosePrefsFile(short prefsFileID);
  37. short GetNextPrefs(short prefsFileID);
  38. short SavePrefs(short prefsFileID);
  39. short Virgin(short prefsFileID);
  40. void DefaultPrefs(void);
  41. void CopyGlobalsToPrefs(void);
  42. void CopyPrefsToGlobals(void);
  43. void SaveThePrefs(void);
  44.  
  45. enum
  46. {
  47.     prefs_allsWell=0,
  48.     prefs_diskReadErr,
  49.     prefs_diskWriteErr,
  50.     prefs_cantOpenPrefsErr,
  51.     prefs_cantCreatePrefsErr,
  52.     prefs_virginErr
  53. };
  54.